package whisper.support.user.service.impl;

import org.springframework.stereotype.Service;
import whisper.support.user.repository.PermissionMapper;
import whisper.support.user.service.PermissionService;

import javax.annotation.Resource;
import java.util.Set;

/**
 * Created by JT on 2018/5/29
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public Set<String> findByUsername(String username) {
        System.out.println("permissions service...");
        return permissionMapper.findByUsername(username);
    }
}
